﻿namespace Common
{
    public class Counter
    {
        public string Name { get; set; }
        public int Total { get; set; }
        public int NG { get; set; }
        public int OK { get { return Total - NG; } }
        public string NgRate { get { return (NG * 1.0 / Total).ToString("P"); } }
        public string PassRate { get { return ((OK * 1.0) / Total).ToString("P"); } }    
    }
}
